package net.da.client.common.config;

import net.da.client.common.util.ComparisonHelper;

public class ConfigKeyImpl implements ConfigKey {
	
	private String key;
	
	private ConfigKeyImpl(String key) {
		this.key = key;
	}
		
	public static ConfigKeyImpl getInstance(String key) {
		return new ConfigKeyImpl(key);
	}
		
	public boolean equals(Object obj) {
        
        if (this == obj) {
            return true;
        } else if (obj instanceof ConfigKey) {
            ConfigKey configKey = (ConfigKey)obj;
            String  value0 = this.toString();
            String  value1 = configKey.toString();
            return ComparisonHelper.isStringsEquals(value0, value1);            
        }
        return false; 
    }

    public int hashCode() {
		// TODO:ALB
		return 0;
	}

	public String toString() {		
		return key;
	}
	
}
